import {RouteRecordRaw} from 'vue-router'
// import optimize from './optimize'
// import seek from './seek'
// import resource from './resource'
// import check from './check'
import search from './search'
import monitor from './monitor'
import system from './system'
import CustomLayout from '@/layout/CustomLayout.vue'
export default [
  {
    path: '/',
    redirect: '/dashboard',
    component: CustomLayout,
    children: [
      {
        path: '/dashboard',
        name: 'dashboard',
        component: () => import('@/views/dashboard/index.vue')
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue')
  },
  {
    path: '/ssh',
    name: 'ssh',
    component: () => import('@/views/ssh/index.vue')
  },
  // ...seek,
  // ...resource,
  // ...check,
  ...search,
  // ...optimize,
  ...monitor,
  ...system,
  {
    path: '/403',
    component: () => import('@/views/error/403.vue')
  },
  {
    path: '/:pathMatch(.*)*',
    component: () => import('@/views/error/404.vue')
  }
] as RouteRecordRaw[]